package com.project.blog.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.project.blog.entity.BaseEntity;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 文章表
 * </p>
 *
 * @author 代码奔腾
 * @since 2022-12-30
 */
@Data
@ApiModel(value = "ArticleDTO对象", description = "ArticleDTO对象")
public class ArticleDTO extends BaseEntity {

    @ApiModelProperty("标题")

    private String title;

    @ApiModelProperty("文章内容")

    private String content;

    @ApiModelProperty("封面图")

    private String picture;

    @ApiModelProperty("所属栏目")

    private Integer categoryId;

    @ApiModelProperty("发布用户")

    private Integer userId;

    @ApiModelProperty("浏览量")

    private Integer views;
    @ApiModelProperty("用户名")
    private  String username;
    @ApiModelProperty("栏目名称")
    private  String categoryName;

}
